package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import com.tl.khadmin.bean.PorductSupHaolibeiDao;
import com.tl.khadmin.bean.ProductSupply;
import com.tl.khadmin.bean.dto.ProductSupplyDetailDto;
import com.tl.khadmin.bean.dto.ProductSupplyDto;
import com.tl.khadmin.bean.dto.ProductSupplyListDto;
import org.apache.ibatis.annotations.Param;

public interface ProductSupplyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProductSupply record);

    int insertSelective(ProductSupply record);

    ProductSupply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProductSupply record);

    int updateByPrimaryKey(ProductSupply record);

	List<ProductSupplyListDto> showProductSupplyByPage(Map<String, Object> params);

	int insertproductSupplyDto(ProductSupplyDto productSupplyDto);

	ProductSupplyDetailDto queryProductSupplyDetailById(Long id);

	int updateProductSupplyDto(ProductSupplyDto productSupplyDto);

	int getOrderDefaultSupply(@Param("pName")String productName, @Param("exDate") String expDate);

    List<PorductSupHaolibeiDao> getSupUploadInfo(@Param("id") Long id);
};